/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.rational.parser.type;

import java.util.TreeSet;
import org.rational.parser.type.standart.*;

/**
 *
 * @author Overmind
 */
public class DefaultTypes
{
    private static TreeSet<Type> types;
    
    public static final Numeric NUMERIC = new Numeric();
    public static final Textual TEXTUAL = new Textual();
    public static final Decimal DECIMAL = new Decimal();
    public static final Logical LOGICAL = new Logical();
    public static final Custom CUSTOM = new Custom();
    
    
    private static void init()
    {
	types = new TreeSet<>();
	
	types.add(NUMERIC);
	types.add(TEXTUAL);
	types.add(DECIMAL);
	types.add(LOGICAL);
    }
    
    public static TreeSet<Type> getTypes()
    {
	if(types == null)
	{
	    init();
	}
	
	return types;
    }
}
